package com.hxzy.shop.commodity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.entity.DrugInnerClassifiedManagement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ZHY
 * @date 2021.7.12 16:24
 * @version 1.0
 */
@Mapper
public interface DrugInnerClassifiedManagementMapper extends BaseMapper<DrugInnerClassifiedManagement> {

     Integer getClassifiedDrugCount(@Param("parentClassifiedManagementId") Long parentClassifiedManagementId,@Param("sonClassifiedManagementId") Long sonClassifiedManagementId);

     List<DrugInnerClassifiedManagement> getDrugInnerClassifiedManagementList(@Param("sonClassifiedIds") List<Long> sonClassifiedIds);

     List<DrugInnerClassifiedManagement> getNotDeleteDrugList(@Param("parentClassifiedManagementId") Long parentClassifiedManagementId,@Param("sonClassifiedManagementId") Long sonClassifiedManagementId);
}